
package com.idealighter.game.roomcard.games.mustniuniu.handler;

import com.google.inject.Inject;

import com.idealighter.game.core.annotation.ReqMsgHandler;
import com.idealighter.game.message.ModuleMsgIdConstant;
import com.idealighter.game.message.core.ReqMessage;
import com.idealighter.game.message.core.ResMessage;
import com.idealighter.game.player.struct.Player;
import com.idealighter.game.roomcard.games.mustniuniu.manager.MustNiuNiuMgr;
import com.idealighter.game.roomcard.games.mustniuniu.message.ReqCallDealerMsg;
import com.idealighter.game.server.handler.ReqMessageHandler;

/**
 * .
 *
 */
@ReqMsgHandler(ModuleMsgIdConstant.MustNiuNiu.CALL_DEALER)
public class ReqCallDealerHandler implements ReqMessageHandler {
  @Inject
  private MustNiuNiuMgr mstnnMgr;

  @Override
  public ResMessage action(Player player, ReqMessage message) {
    ReqCallDealerMsg msg = (ReqCallDealerMsg) message;
    return mstnnMgr.callDealer(player, msg.getMultiple());
  }
}
